Optimal. Leaf size=41 \[ \frac {a \tanh ^{-1}\left (\frac {f x}{e}\right )}{e f}+\frac {b \text {Li}_2\left (1-\frac {2 e}{e+f x}\right )}{2 e f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2450, 214,
2449, 2352} \begin {gather*} \frac {b \text {PolyLog}\left (2,1-\frac {2 e}{e+f x}\right )}{2 e f}+\frac {a \tanh ^{-1}\left (\frac {f x}{e}\right )}{e f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 2352
Rule 2449
Rule 2450
Rubi steps
\begin {align*} \int \frac {a+b \log \left (\frac {2 e}{e+f x}\right )}{e^2-f^2 x^2} \, dx &=a \int \frac {1}{e^2-f^2 x^2} \, dx+b \int \frac {\log \left (\frac {2 e}{e+f x}\right )}{e^2-f^2 x^2} \, dx\\ &=\frac {a \tanh ^{-1}\left (\frac {f x}{e}\right )}{e f}+\frac {b \text {Subst}\left (\int \frac {\log (2 e x)}{1-2 e x} \, dx,x,\frac {1}{e+f x}\right )}{f}\\ &=\frac {a \tanh ^{-1}\left (\frac {f x}{e}\right )}{e f}+\frac {b \text {Li}_2\left (1-\frac {2 e}{e+f x}\right )}{2 e f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 82, normalized size = 2.00 \begin {gather*} \frac {-\left (\left (a+b \log \left (\frac {2 e}{e+f x}\right )\right ) \left (a+2 b \log \left (\frac {e-f x}{2 e}\right )+b \log \left (\frac {2 e}{e+f x}\right )\right )\right )+2 b^2 \text {Li}_2\left (\frac {e+f x}{2 e}\right )}{4 b e f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.84, size = 44, normalized size = 1.07
method | result | size |
derivativedivides | \(-\frac {2 e \left (\frac {a \ln \left (\frac {2 e}{f x +e}-1\right )}{4 e^{2}}-\frac {b \dilog \left (\frac {2 e}{f x +e}\right )}{4 e^{2}}\right )}{f}\) | \(44\) |
default | \(-\frac {2 e \left (\frac {a \ln \left (\frac {2 e}{f x +e}-1\right )}{4 e^{2}}-\frac {b \dilog \left (\frac {2 e}{f x +e}\right )}{4 e^{2}}\right )}{f}\) | \(44\) |
risch | \(-\frac {a \ln \left (f x -e \right )}{2 e f}+\frac {a \ln \left (f x +e \right )}{2 e f}+\frac {b \dilog \left (\frac {2 e}{f x +e}\right )}{2 f e}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 46, normalized size = 1.12 \begin {gather*} \frac {{\left (b {\rm Li}_2\left (-\frac {2 \, e}{f x + e} + 1\right ) + a \log \left (f x + e\right ) - a \log \left (f x - e\right )\right )} e^{\left (-1\right )}}{2 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {a}{- e^{2} + f^{2} x^{2}}\, dx - \int \frac {b \log {\left (2 \right )}}{- e^{2} + f^{2} x^{2}}\, dx - \int \frac {b \log {\left (\frac {e}{e + f x} \right )}}{- e^{2} + f^{2} x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.34, size = 43, normalized size = 1.05 \begin {gather*} -\frac {a\,\ln \left (f\,x-e\right )-b\,{\mathrm {Li}}_{\mathrm {2}}\left (\frac {2\,e}{e+f\,x}\right )+a\,\ln \left (\frac {1}{e+f\,x}\right )}{2\,e\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________